package com.huanghj.mqJsm.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.huanghj.base.api.ApiModel;
import com.huanghj.base.hessianAnnotations.HessianClient;
import com.huanghj.book.remote.TestServiceRemote;
import com.huanghj.mqJsm.base.controller.AbstractController;

@Controller
public class TestController extends AbstractController{
	
	@Autowired
	@HessianClient("soa_url")
	private TestServiceRemote testRemote;
	
	
	
	@SuppressWarnings("rawtypes")
	@ResponseBody
	@RequestMapping
	public ApiModel test(){
		logger.info("adfaf");
		return buildSuccMsg(testRemote.queryTest());
		//return buildSuccMsg(null);
	}
}
